import { createApp } from 'vue'
// 全局样式
import './style.css'
// element-plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// 挂载
import App from './App.vue'
// 路由
import router from './router'
// element-plus-icon
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

// 引入状态管理
import store from './store'

const app = createApp(App)
// 挂载图标 element-plus-icon
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
// store
app.use(store)
// router
app.use(router)
// element plus
app.use(ElementPlus)
// windi css
import 'virtual:windi.css'

import "./permission.js"

import "nprogress/nprogress.css"

app.mount('#app')